package net.lahuobao.mall.entity.admin;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.*;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**   
 * @Title: Entity
 * @Description: 规格值
 * @author zhangdaihao
 * @date 2016-10-21 23:18:35
 * @version V1.0   
 *
 */
@Entity
@Table(name = "mall_product_category_spec_val", schema = "lahuobao")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class MallProductCategorySpecValEntity implements java.io.Serializable {
	/**id*/
	private java.lang.Integer id;
	/**value*/
	private java.lang.String value;
	/**specid*/
	private java.lang.Integer specid;
	/**createuserid*/
	private java.lang.Integer createuserid;
	/**createtime*/
	private java.util.Date createtime;
	/**status*/
	private java.lang.Integer status;


	private MallProductCategorySpecEntity mallProductCategorySpecEntity;
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  id
	 */
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="ID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  id
	 */
	public void setId(java.lang.Integer id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  value
	 */
	@Column(name ="VALUE",nullable=false,length=200)
	public java.lang.String getValue(){
		return this.value;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  value
	 */
	public void setValue(java.lang.String value){
		this.value = value;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  specid
	 */
	@Column(name ="SPECID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getSpecid(){
		return this.specid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  specid
	 */
	public void setSpecid(java.lang.Integer specid){
		this.specid = specid;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  createuserid
	 */
	@Column(name ="CREATEUSERID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getCreateuserid(){
		return this.createuserid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  createuserid
	 */
	public void setCreateuserid(java.lang.Integer createuserid){
		this.createuserid = createuserid;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  createtime
	 */
	@Column(name ="CREATETIME",nullable=false)
	public java.util.Date getCreatetime(){
		return this.createtime;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  createtime
	 */
	public void setCreatetime(java.util.Date createtime){
		this.createtime = createtime;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  status
	 */
	@Column(name ="STATUS",nullable=false,precision=3,scale=0)
	public java.lang.Integer getStatus(){
		return this.status;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  status
	 */
	public void setStatus(java.lang.Integer status){
		this.status = status;
	}

	@OneToOne
	@JoinColumn(name = "specid", insertable = false, updatable = false)
	public MallProductCategorySpecEntity getMallProductCategorySpecEntity() {
		return mallProductCategorySpecEntity;
	}

	public void setMallProductCategorySpecEntity(MallProductCategorySpecEntity mallProductCategorySpecEntity) {
		this.mallProductCategorySpecEntity = mallProductCategorySpecEntity;
	}
}
